1a018fda40d8cdacb9bcf52ac170f8fca84e8738,exampleclient/src/main/java/pitt/search/examples/NarrativeRelationsIndexer.java,NarrativeRelationsIndexer,getPsiDyadVector,#ParsedRecord#,80
Before Change
}
private Vector getPsiDyadVector(ParsedRecord record) {
Vector subjectRelationVector = this.elementalVectors.getVector(record.subject).copy();
subjectRelationVector.bind(this.elementalVectors.getVector(record.predicate).copy());
Vector objectRelationVector = this.elementalVectors.getVector(record.predicate).copy();
objectRelationVector.bind(this.elementalVectors.getVector(record.object).copy());
subjectRelationVector.superpose(objectRelationVector, 1, null);
return subjectRelationVector;
After Change
}
private Vector getPsiDyadVector(ParsedRecord record) {
Vector subjectRelationVector = this.vectorForString(record.subject);
subjectRelationVector.bind(this.vectorForString(record.predicate));
Vector objectRelationVector = this.vectorForString(record.predicate);
objectRelationVector.bind(this.vectorForString(record.object));
subjectRelationVector.superpose(objectRelationVector, 1, null);
return subjectRelationVector;